<template>
  <a-card :bordered="false">
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24">
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="项目代号">
              <a-input placeholder="请输入项目代号" v-model="queryParam.equipmentProjectcode"></a-input>
              <!-- <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="queryParam.code_end"></a-input> -->
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="客户名称">
              <a-input placeholder="请输入客户名称" v-model="queryParam.customName"></a-input>
              <!-- <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="queryParam.code_end"></a-input> -->
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="项目名称">
              <a-input placeholder="请输入项目名称" v-model="queryParam.name"></a-input>
            </a-form-item>
          </a-col>
          <template v-if="toggleSearchStatus">
            <a-col :xl="6" :lg="7" :md="8" :sm="24">
              <a-form-item label="项目类型">
                <j-dict-select-tag placeholder="请选择项目类型" v-model="queryParam.equipmentType" dictCode="equipment_type"/>
              </a-form-item>
            </a-col>
            <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="项目区域">
              <a-input placeholder="请输入项目区域" v-model="queryParam.equipmentArea"></a-input>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="项目状态">
              <j-dict-select-tag placeholder="请选择项目状态" v-model="queryParam.runtimeStatus" dictCode="runtime_status"/>
            </a-form-item>
          </a-col>
            <a-col :xl="10" :lg="11" :md="12" :sm="24">
              <a-form-item label="验收日期">
                <j-date placeholder="请选择开始日期" class="query-group-cust" v-model="queryParam.acceptanceDate_begin"></j-date>
                <span class="query-group-split-cust"></span>
                <j-date placeholder="请选择结束日期" class="query-group-cust" v-model="queryParam.acceptanceDate_end"></j-date>
              </a-form-item>
            </a-col>
          </template>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
              <a @click="handleToggleSearch" style="margin-left: 8px">
                {{ toggleSearchStatus ? '收起' : '展开' }}
                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
              </a>
            </span>
          </a-col>
        </a-row>
      </a-form>
    </div>
    <!-- 查询区域-END -->

    <!-- 操作按钮区域 -->
    <div class="table-operator">
      <a-button v-show="!isSystemRpt&&isConfigEquipment&&!noPermission" @click="handleAdd"  type="primary" icon="plus">新增</a-button>
      <a-button v-show="selectedRowKeys.length ==1&&!isSystemRpt&&isConfigEquipment&&!noPermission"  @click="myhandleEdit" type="primary" icon="edit">编辑</a-button>
      <a-button v-show="selectedRowKeys.length ==1&&!isSystemRpt&&isConfigEquipment&&!noPermission"  @click="myhandleDetail" type="primary" icon="detail">详情</a-button>
      <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
                  <a-button v-show="selectedRowKeys.length ==1&&!isSystemRpt&&isConfigEquipment"  type="primary" icon="delete">删除</a-button>
      </a-popconfirm>
      <!-- <a v-show="false" @click="handleEdit(record)">编辑</a> -->
      <a-button type="primary" icon="download" v-show="isConfigEquipment" @click="handleExportXls('项目主表')">导出</a-button>
      <a-upload name="file" v-show="isConfigEquipment" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
        <a-button type="primary" v-show="isConfigEquipment" icon="import">导入</a-button>
      </a-upload>
      <!-- 高级查询区域 -->
      <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
      <!-- <a-dropdown v-if="selectedRowKeys.length > 0&&!isSystemRpt">
        <a-menu slot="overlay">
          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
        </a-menu>
        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
      </a-dropdown> -->
    </div>

    <!-- table区域-begin -->
    <div>
      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
        <span style="float:right;">
          <a @click="loadData()"><a-icon type="sync" />刷新</a>
          <a-divider type="vertical" />
          <list-columns-fix-setter
            v-if="columns.length > 0"
            v-model="columns"
            :def-columns="columns"
            @change="columnChange"
          />
        </span>
      </div>

      <a-table
        ref="table"
        size="middle"
        :scroll="{x:true}"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
        class="j-table-force-nowrap"
        @change="handleTableChange">

        <template slot="htmlSlot" slot-scope="text">
          <div v-html="text"></div>
        </template>
        <template slot="imgSlot" slot-scope="text,record">
          <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
        </template>
        <template slot="fileSlot" slot-scope="text">
          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
          <a-button
            v-else
            :ghost="true"
            type="primary"
            icon="download"
            size="small"
            @click="downloadFile(text)">
            下载
          </a-button>
        </template>
        <!-- v-has="'device:edit'" -->
        <span slot="action" slot-scope="text, record">
          <a v-show="false" @click="handleEdit(record)">编辑</a>
          <a-divider v-show="false" type="vertical" />
          <a v-show="!isSystemRpt" @click="openSubMenu(record)" >{{equipmentMenuText}}</a>
          <a-divider  v-show="false"  type="vertical" />
          <a @click="handleDetail(record)" v-show="false">详情</a>
          <!-- <a-divider  v-show="!isSystemRpt&&isConfigEquipment" type="vertical" />
          <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
                  <a  v-show="isConfigEquipment" >删除</a>
          </a-popconfirm> -->
          <!-- <a-dropdown>
            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
            <a-menu slot="overlay">
              <a-menu-item>
                <a @click="handleDetail(record)">详情</a>
              </a-menu-item>
              <a-menu-item v-if="!isSystemRpt">
                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
                  <a>删除</a>
                </a-popconfirm>
              </a-menu-item>
            </a-menu>
          </a-dropdown> -->
        </span>

      </a-table>
    </div>

    <yks-equipment-modal ref="modalForm" @ok="modalFormOk"></yks-equipment-modal>
  </a-card>
</template>

<script>

  import '@/assets/less/TableExpand.less'
  import { mixinDevice } from '@/utils/mixin'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import YksEquipmentModal from './modules/YksEquipmentModal'
  import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  import ListColumnsFixSetter from '@/components/ListColumnsFixSetter'
  import { deleteAction, getAction,downFile,getFileAccessHttpUrl } from '@/api/manage'
  import { USER_INFO, USER_INFO_PRO,USER_AUTH, SYS_BUTTON_AUTH } from '@/store/mutation-types'
  import Vue from 'vue'
  // import { USER_INFO, USER_INFO_PRO, USER_AUTH, SYS_BUTTON_AUTH } from '@/store/mutation-types'

  export default {
    name: 'YksEquipmentList',
    mixins:[JeecgListMixin, mixinDevice],
    components: {
      YksEquipmentModal,
      ListColumnsFixSetter
    },
    data () {
      return {
        description: '项目主表管理页面',
        columns:[],
        serviceColumns: [
          {
            title: '#',
            dataIndex: '',
            key:'rowIndex',
            width:60,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
          },
          // {
          //   title:'客户名称',
          //   align:"center",
          //   dataIndex: 'customName'
          // },
          {
            title:'项目代号',
            align:"center",
            dataIndex: 'equipmentProjectcode'
          },
          {
            title:'项目名称',
            align:"center",
            sorter: true,
            dataIndex: 'name'
          },
        ],
        // 表头
        customColumns: [
          {
            title: '#',
            dataIndex: '',
            key:'rowIndex',
            fixed:"left",
            width:60,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
          },
          
          {
            title:'项目代号',
            fixed:"left",
            align:"center",
            dataIndex: 'equipmentProjectcode'
          },
          {
            title:'项目名称',
            fixed:"left",
            align:"center",
            sorter: true,
            dataIndex: 'name'
          },
          {
            title:'客户名称',
            fixed:"left",
            align:"center",
            dataIndex: 'customName'
          },
        ],
        customerBody:[
          // {
          //   title:'项目配置人',
          //   align:"center",
          //   sorter: true,
          //   dataIndex: 'createBy'
          // },
          
          // {
          //   title:'项目配置日期',
          //   align:"center",
          //   dataIndex: 'createTime',
          //   customRender:function (text) {
          //     return !text?"":(text.length>10?text.substr(0,10):text)
          //   }
          // },
          // {
          //   title:'项目系列号',
          //   align:"center",
          //   dataIndex: 'serialNumber'
          // },
          // {
          //   title:'地图位置',
          //   align:"center",
          //   dataIndex: 'lonlat'
          // },
          {
            title:'项目类型',
            align:"center",
            dataIndex: 'equipmentType_dictText'
          },
          
          {
            title:'出厂日期',
            align:"center",
            dataIndex: 'productDate',
            customRender:function (text) {
              return !text?"":(text.length>10?text.substr(0,10):text)
            }
          },
          {
            title:'运行状态',
            align:"center",
            dataIndex: 'runtimeStatus_dictText'
          },
          {
            title:'交付(验收)日期',
            align:"center",
            dataIndex: 'acceptanceDate',
            customRender:function (text) {
              return !text?"":(text.length>10?text.substr(0,10):text)
            }
          },
          {
            title:'质保结束日期',
            align:"center",
            sorter: true,
            dataIndex: 'warrantyEnddate',
            customRender:function (text) {
              return !text?"":(text.length>10?text.substr(0,10):text)
            }
          },
          {
            title:'RDEE流量卡到期日期',
            align:"center",
            dataIndex: 'rdeeEnddate',
            customRender:function (text) {
              return !text?"":(text.length>10?text.substr(0,10):text)
            }
          },
          {
            title:'项目区域',
            align:"center",
            dataIndex: 'equipmentArea'
          },
          {
            title:'制造商',
            align:"center",
            dataIndex: 'productor'
          },
          {
            title:'售后服务联系人',
            align:"center",
            dataIndex: 'aftersellContacts'
          },
          {
            title:'手机/固话',
            align:"center",
            dataIndex: 'phoneWechat'
          },
          {
            title:'售后服务邮箱',
            align:"center",
            dataIndex: 'email'
          },
          {
            title:'备注',
            align:"center",
            dataIndex: 'remark'
          },
          // {
          //   title:'项目项目负责人',
          //   align:"center",
          //   dataIndex: 'manager'
          // },
          // {
          //   title:'客户ID',
          //   align:"center",
          //   dataIndex: 'customId'
          // },
          
          // {
          //   title:'客户地址',
          //   align:"center",
          //   dataIndex: 'customAddress'
          // },
          // {
          //   title:'业务联系人',
          //   align:"center",
          //   dataIndex: 'contracts'
          // },
          // {
          //   title:'联系电话',
          //   align:"center",
          //   dataIndex: 'phone'
          // },
          {
            title:'RDEE流量卡号',
            align:"center",
            dataIndex: 'rdeeFlownumber'
          },
          {
            title: '操作',
            dataIndex: 'action',
            align:"center",
            fixed:"right",
            width:147,
            scopedSlots: { customRender: 'action' }
          }],
         columnsBody: [
          {
            title:'项目配置人',
            align:"center",
            sorter: true,
            dataIndex: 'createBy'
          },
          
          {
            title:'项目配置日期',
            align:"center",
            dataIndex: 'createTime',
            customRender:function (text) {
              return !text?"":(text.length>10?text.substr(0,10):text)
            }
          },
          // {
          //   title:'项目系列号',
          //   align:"center",
          //   dataIndex: 'serialNumber'
          // },
          // {
          //   title:'地图位置',
          //   align:"center",
          //   dataIndex: 'lonlat'
          // },
          {
            title:'项目类型',
            align:"center",
            dataIndex: 'equipmentType_dictText'
          },
          
          {
            title:'出厂日期',
            align:"center",
            dataIndex: 'productDate',
            customRender:function (text) {
              return !text?"":(text.length>10?text.substr(0,10):text)
            }
          },
          {
            title:'生产状态',
            align:"center",
            dataIndex: 'productionStatus_dictText'
          },
          {
            title:'运行状态',
            align:"center",
            dataIndex: 'runtimeStatus_dictText'
          },
          {
            title:'交付(验收)日期',
            align:"center",
            dataIndex: 'acceptanceDate',
            customRender:function (text) {
              return !text?"":(text.length>10?text.substr(0,10):text)
            }
          },
          {
            title:'质保结束日期',
            align:"center",
            sorter: true,
            dataIndex: 'warrantyEnddate',
            customRender:function (text) {
              return !text?"":(text.length>10?text.substr(0,10):text)
            }
          },
          {
            title:'RDEE流量卡到期日期',
            align:"center",
            dataIndex: 'rdeeEnddate',
            customRender:function (text) {
              return !text?"":(text.length>10?text.substr(0,10):text)
            }
          },
          {
            title:'项目区域',
            align:"center",
            dataIndex: 'equipmentArea'
          },
          {
            title:'制造商',
            align:"center",
            dataIndex: 'productor'
          },
          {
            title:'售后服务联系人',
            align:"center",
            dataIndex: 'aftersellContacts'
          },
          {
            title:'售后服务电话',
            align:"center",
            dataIndex: 'phoneWechat'
          },
          {
            title:'售后服务邮箱',
            align:"center",
            dataIndex: 'email'
          },
          {
            title:'备注',
            align:"center",
            dataIndex: 'remark'
          },
          {
            title:'项目负责人',
            align:"center",
            dataIndex: 'manager'
          },
          // {
          //   title:'客户ID',
          //   align:"center",
          //   dataIndex: 'customId'
          // },
          
          {
            title:'客户地址',
            align:"center",
            dataIndex: 'customAddress'
          },
          {
            title:'业务联系人',
            align:"center",
            dataIndex: 'contracts'
          },
          {
            title:'联系电话',
            align:"center",
            dataIndex: 'phone'
          },
          {
            title:'PLC品牌与型号',
            align:"center",
            dataIndex: 'plcBrand'
          },
          {
            title:'RDEE品牌与型号',
            align:"center",
            dataIndex: 'rdeeBrand'
          },
          {
            title:'RDEE网关型号',
            align:"center",
            dataIndex: 'rdeeRoutetype'
          },
          {
            title:'RDEE网关序列号',
            align:"center",
            dataIndex: 'rdeeRouteserialnumber'
          },
          {
            title:'RDEE网关账号',
            align:"center",
            dataIndex: 'rdeeRouteaccount'
          },
          {
            title:'RDEE网关账号密码',
            align:"center",
            dataIndex: 'rdeeRoutepassword'
          },
          {
            title:'RDEE流量卡号',
            align:"center",
            dataIndex: 'rdeeFlownumber'
          },
          {
            title:'RDEE ID',
            align:"center",
            dataIndex: 'rdeeId'
          },
          {
            title:'RDEE IP	',
            align:"center",
            dataIndex: 'rdeeIp'
          },
          {
            title:'RDEE MQTT账号密码',
            align:"center",
            dataIndex: 'rdeeMqtt'
          },
          {
            title: '操作',
            dataIndex: 'action',
            align:"center",
            fixed:"right",
            width:147,
            scopedSlots: { customRender: 'action' }
          }
        ],
        url: {
          list: "/dev/yksEquipment/list",
          delete: "/dev/yksEquipment/delete",
          deleteBatch: "/dev/yksEquipment/deleteBatch",
          exportXlsUrl: "/dev/yksEquipment/exportXls",
          importExcelUrl: "dev/yksEquipment/importExcel",
          
        },
        dictOptions:{},
        superFieldList:[],
        equipmentType : '',
        isSystemRpt:true,
        user:null,
        isConfigEquipment:false,
        hasAddPermission:'',
        noPermission:false,
        equipmentMenuText:'项目详情'
      }
    },
    watch: {
      $route:{
        handler: function(nval,oval){
          this.changePage();
        }
      },
      hasAddPermission:{
        handler: function(nval,oval){
          if(!nval&&nval!=''){
            this.$forceUpdate()
          }
        }
      }
    },
    created() {
       this.user = Vue.ls.get(USER_INFO)
       if (this.user.userIdentity == 1) {
        this.columns = this.customColumns.concat(this.columnsBody)
       } else {
        // this.columns = this.serviceColumns.concat(this.columnsBody)
        this.columns = this.serviceColumns.concat(this.customerBody)
        
       }
       this.confirmPermission()
       console.log(this.user)
       this.getSuperFieldList();
    },
    computed: {
      importExcelUrl: function(){
        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
      },
    },
    methods: {
      myhandleEdit(){
        if(this.selectionRows.length>0){
          this.handleEdit(this.selectionRows[0])
        }
      },
      myhandleDetail(){
        if(this.selectionRows.length>0){
          this.handleDetail(this.selectionRows[0])
        }
      },
      changePage(){
        if (this.$route.path.indexOf("equipmentComList") != -1||
        this.$route.path.indexOf("EquipmentDevopsCombineList") != -1||
        this.$route.path.indexOf("EquipmentRunCombineList") != -1) {
         let arr = this.$route.path.split("/")
         console.log(arr[arr.length - 1])
         this.equipmentType = arr[arr.length - 1]
         this.isSystemRpt = false
        }
        this.confirmPermission()
        this.selectedRowKeys=[]
         this.loadData(1)
      },
      confirmPermission(){
        if(this.$route.path.indexOf("equipmentComList") != -1){
          this.equipmentMenuText='项目配置'
          // let arr = this.$route.path.split("/")
          // this.hasAddPermission='device'+arr[arr.length - 1]+':config'
          // this.preCheckPermission(this.hasAddPermission)
        }
        if(this.$route.path.indexOf("EquipmentDevopsCombineList") != -1){
        }
        if(this.$route.path.indexOf("EquipmentRunCombineList") != -1){
          
        }
        
        
      },
    preCheckPermission(permStr) {
      let flag = false
      let permissions = sessionStorage.getItem(USER_AUTH)
      if (permissions) {
        permissions = JSON.parse(permissions)
        permissions.forEach((v, k) => {
          if (v.action == permStr) {
            flag = true
          }
        })
      }
      if (flag) {
        this.noPermission = false
      } else {
        this.noPermission = true
      }
    },
      loadData(arg) {
        this.openMainMenu()
        if(!this.url.list){
          this.$message.error("请设置url.list属性!")
          return
        }
        if (this.$route.path.indexOf("equipmentComList") != -1||
        this.$route.path.indexOf("EquipmentDevopsCombineList") != -1||
        this.$route.path.indexOf("EquipmentRunCombineList") != -1) {
           this.isConfigEquipment=this.$route.path.indexOf("equipmentComList") != -1
            let arr = this.$route.path.split("/")
            this.equipmentType = arr[arr.length - 1]
            this.isSystemRpt = false
        }
        //加载数据 若传入参数1则加载第一页的内容
        if (arg === 1) {
          this.ipagination.current = 1;
        }
        var params = this.getQueryParams();//查询条件
        params.equipmentType = this.equipmentType
        // params.equipmentId = this.currentEquipmentId
        this.loading = true;
        getAction(this.url.list, params).then((res) => {
          if (res.success) {
            //update-begin---author:zhangyafei    Date:20201118  for：适配不分页的数据列表------------
            this.dataSource = res.result.records||res.result;
            if(res.result.total)
            {
              this.ipagination.total = res.result.total;
            }else{
              this.ipagination.total = 0;
            }
            //update-end---author:zhangyafei    Date:20201118  for：适配不分页的数据列表------------
          }else{
            this.$message.warning(res.message)
          }
        }).finally(() => {
          this.loading = false
        })
      },
      openSubMenu(record) {
        this.$emit("openSubMenu",record)
      },
      openMainMenu(){
        this.$emit("openMainMenu")
      },
      columnChange(columns) {
         this.columns = columns
      },
      initDictConfig(){
      },
      getSuperFieldList(){
        let fieldList=[];
        fieldList.push({type:'string',value:'code',text:'项目编号',dictCode:''})
        fieldList.push({type:'string',value:'name',text:'项目名称',dictCode:''})
        fieldList.push({type:'string',value:'equipmentModel',text:'项目型号',dictCode:'equipment_model'})
        // fieldList.push({type:'string',value:'serialNumber',text:'项目系列号',dictCode:''})
        fieldList.push({type:'int',value:'lonlat',text:'地图位置',dictCode:''})
        fieldList.push({type:'string',value:'equipmentType',text:'项目类型',dictCode:'equipment_type'})
        fieldList.push({type:'string',value:'equipmentProjectcode',text:'项目项目代号',dictCode:''})
       
        fieldList.push({type:'date',value:'productDate',text:'出厂日期'})
        fieldList.push({type:'string',value:'productionStatus',text:'生产状态',dictCode:'production status'})
        fieldList.push({type:'string',value:'runtimeStatus',text:'运行状态',dictCode:'runtime_status'})
        fieldList.push({type:'date',value:'acceptanceDate',text:'交付(验收)日期'})
        fieldList.push({type:'date',value:'warrantyEnddate',text:'质保结束日期'})
        fieldList.push({type:'date',value:'rdeeEnddate',text:'RDEE流量卡到期日期'})
        fieldList.push({type:'string',value:'equipmentArea',text:'项目区域',dictCode:''})
        fieldList.push({type:'string',value:'productor',text:'制造商',dictCode:''})
        fieldList.push({type:'string',value:'aftersellContacts',text:'售后服务联系人',dictCode:''})
        fieldList.push({type:'string',value:'phoneWechat',text:'联系电话及微信号',dictCode:''})
        fieldList.push({type:'string',value:'email',text:'邮箱',dictCode:''})
        fieldList.push({type:'string',value:'remark',text:'备注',dictCode:''})
        fieldList.push({type:'string',value:'manager',text:'项目项目负责人',dictCode:''})
        // fieldList.push({type:'string',value:'customId',text:'客户ID',dictCode:''})
        fieldList.push({type:'string',value:'customName',text:'客户名称',dictCode:''})
        fieldList.push({type:'string',value:'customAddress',text:'客户地址',dictCode:''})
        fieldList.push({type:'string',value:'contracts',text:'业务联系人',dictCode:''})
        fieldList.push({type:'string',value:'phone',text:'联系电话',dictCode:''})
        fieldList.push({type:'string',value:'plcBrand',text:'PLC品牌与型号',dictCode:''})
        fieldList.push({type:'string',value:'rdeeBrand',text:'RDEE品牌与型号',dictCode:''})
        fieldList.push({type:'string',value:'rdeeRoutetype',text:'RDEE网关型号',dictCode:''})
        fieldList.push({type:'string',value:'rdeeRouteserialnumber',text:'RDEE网关序列号',dictCode:''})
        fieldList.push({type:'string',value:'rdeeRouteaccount',text:'RDEE网关账号',dictCode:''})
        fieldList.push({type:'string',value:'rdeeRoutepassword',text:'RDEE网关账号密码',dictCode:''})
        fieldList.push({type:'string',value:'rdeeFlownumber',text:'RDEE流量卡号',dictCode:''})
        fieldList.push({type:'string',value:'rdeeId',text:'RDEE ID',dictCode:''})
        fieldList.push({type:'string',value:'rdeeIp',text:'RDEE IP	',dictCode:''})
        fieldList.push({type:'string',value:'rdeeMqtt',text:'RDEE MQTT账号密码',dictCode:''})
        this.superFieldList = fieldList
      }
    }
  }
</script>
<style scoped>
  @import '~@assets/less/common.less';
</style>